.Net Framework > v1.1.4322 > System > Data > ConstraintCollection > Add Add(Constraint)
Add(String,DataColumn,Boolean)
Add(String,DataColumn,DataColumn)
Add(String,DataColumn[],Boolean)
Add(String,DataColumn[],DataColumn[])


Add(Constraint)

Category
Method
Description
Adds the specified System.Data.Constraint object to the collection.
Type
void
Character
public
Parameters
NameTypeDescription
constraintConstraint
Tags
01892ABD01, 02E3ABA98D, 0311417F6F

Add(String,DataColumn,Boolean)

Category
Method
Description
Constructs a new System.Data.UniqueConstraintwith the specified name, System.Data.DataColumn, and value indicating whether the column is a primary key, and adds it to the collection.
Type
Constraint
Character
public
Parameters
NameTypeDescription
nameString
columnDataColumn
primaryKeyBoolean
Tags
01892ABD01, 02E3ABA98D, 0311417F6F

Add(String,DataColumn,DataColumn)

Category
Method
Description
Constructs a new System.Data.ForeignKeyConstraint with the specified name, parent column, and child column, and adds the constraint to the collection.
Type
Constraint
Character
public
Parameters
NameTypeDescription
nameString
primaryKeyColumnDataColumn
foreignKeyColumnDataColumn
Tags
01892ABD01, 02E3ABA98D, 0311417F6F

Add(String,DataColumn[],Boolean)

Category
Method
Description
Constructs a new System.Data.UniqueConstraint with the specified name, array of System.Data.DataColumn objects, and value indicating whether the column is a primary key, and adds it to the collection.
Type
Constraint
Character
public
Parameters
NameTypeDescription
nameString
columnsDataColumn[]
primaryKeyBoolean
Tags
01892ABD01, 02E3ABA98D, 0311417F6F

Add(String,DataColumn[],DataColumn[])

Category
Method
Description
Constructs a new System.Data.ForeignKeyConstraint, with the specified arrays of parent columns and child columns, and adds the constraint to the collection.
Type
Constraint
Character
public
Parameters
NameTypeDescription
nameString
primaryKeyColumnsDataColumn[]
foreignKeyColumnsDataColumn[]
Tags
01892ABD01, 02E3ABA98D, 0311417F6F

Software for developers
.Net Components
Delphi Components
Software for Android Developers
More information resources
WinAPI Programmer's Reference
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database